.error {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  background-color: #000;

  &__container {
    box-sizing: border-box;
    width: 90vw;
    max-width: 500px;
    height: 108vw;
    max-height: 600px;
    border-radius: 25px;
    outline: 8px double #a10b80;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 20px;
  }

  &__title,
  &__subtitle,
  &__link {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
  }

  &__title {
    font-size: 140px;
    margin: 0;
  }

  &__subtitle {
    margin: 10px 0 40px 0;
  }

  &__link {
    text-decoration: none;
    color: black;
    border: none;
    background-color: transparent;
  }

  &__pig {
    position: relative;
    width: 60%;
    height: 60%;
    background: url('../../images/notFound/pig.jpg') no-repeat center/contain;
    border: none;
    outline: none;
    margin: 0 0 50px 0;
    cursor: pointer;

    &:hover {
      transform: scale(0.99);
    }

    &:active {
      transform: scale(0.92);
    }
  }

  &__wordcloud {
    width: 37%;
    height: 37%;
    position: absolute;
    top: 22%;
    left: -25%;
    background: url('../../images/notFound/wordcloud.png') no-repeat center/contain;
  }

  &__text {
    display: block;
    margin-top: 30%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
  }

  &__image {
    width: 100%;
    height: 100vh;
    background: url('../../images/notFound/angryPig.png') no-repeat center/contain;

    &_active {
      background-image: url('../../images/notFound/dieMessage.jpg');
    }
  }

  @media (max-width: 550px) {
    &__container {
      border-radius: 5vw;
      outline-width: 1.5vw;
      padding: 2vw 0 3.5vw;
    }

    &__title,
    &__subtitle,
    &__link {
      font-size: 3.5vw;
    }

    &__title {
      font-size: 25vw;
      margin: 0;
    }

    &__subtitle {
      margin: 2vw 0 7vw 0;
    }

    &__pig {
      border-radius: 5vw;
      margin: 0 0 10vw 0;
    }

    &__text {
      margin-top: 5.5vw;
      font-size: 2.5vw;
    }
  }
}
